#!/usr/bin/python2.7

class Singleton(object):
    def __new__(cls):
        foo = vars(cls)
        for k,v in foo.items():
            print k + ": ", v
        cls.test = 5
        if not hasattr(cls,'instance'):
            cls.instance = super(Singleton, cls).__new__(cls)
        return cls.instance
print
print
singleton = Singleton()
print
print
another_singleton = Singleton()

